<html class="hb-loaded">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta name="format-detection" content="telephone=no">
    <title>身份证照片生成器</title>
    <link href="//cdn.bootcss.com/FrozenUI/1.3.0/css/frozen.css" rel="stylesheet">
    <script src="//cdn.bootcss.com/FrozenUI/1.3.0/lib/zepto.min.js"></script>
    <script src="//cdn.bootcss.com/FrozenUI/1.3.0/js/frozen.js"></script>
</head>
<body ontouchstart="" huaban_collector_injected="true">
<header class="ui-header ui-header-positive ui-border-b">
    <i class="ui-icon-return" onclick="history.back()"></i>
    <h1>身份证生成器</h1><a href="/">
        <button class="ui-btn">回首页</button>
    </a>
</header>
<section class="ui-container">
    <?php
    $xm = $_POST['xm'];
    $cs = $_POST['cs'];
    $xba = $_POST['xba'];
    $mz = $_POST['mz'];
    $zhuzhi = $_POST['zhuzhi'];
    $hm = $_POST['hm'];
    $tx = $_POST['tx'];
    $qfdw = $_POST['qfdw'];
    $yxq = $_POST['yxq'];
    $yz = $_POST['yz'];

    if ($yz == 'zm') {
        if (!in_array(pathinfo($tx)['extension'], ['png', 'jpg', 'jpeg'])) {
            exit('头像必须是png、jpg、jpeg');
        }
    }

    if ($yz == 'zm') {
        echo '<div style="text-align:center"><img src="./getimg.php?' . "xm=$xm&cs=$cs&mz=$mz&xba=$xba&zhuzhi=$zhuzhi&hm=$hm&tx=$tx&yz=zm" . '"/></div>';
    } else {
        echo '<div style="text-align:center"><img src="./getimg.php?' . "&qfdw=$qfdw&yxq=$yxq&yz=bm" . '"/></div>';
    }
    ?>
    <div class="ui-tips ui-tips-warn">
        <i></i><span>请右键保存到本地，本站不做存储。</span>
    </div>
</section>

<script src="../lib/zepto.min.js"></script>
<script src="../js/frozen.js"></script>
<script>
    (function () {
        var tab = new fz.Scroll('.ui-tab', {
            role: 'tab',
            autoplay: false,
            interval: 3000
        });
        /* 滑动开始前 */
        tab.on('beforeScrollStart', function (fromIndex, toIndex) {
            console.log(fromIndex, toIndex);// from 为当前页，to 为下一页
        })
    })();
</script>

<div style="position: static; width: 0px; height: 0px; border: none; padding: 0px; margin: 0px;">
    <div id="trans-tooltip">
        <div id="tip-left-top"
             style="background: url(chrome-extension://ikkepelhgbcgmhhmcmpfkjmchccjblkd/imgs/map/tip-left-top.png);"></div>
        <div id="tip-top"
             style="background: url(chrome-extension://ikkepelhgbcgmhhmcmpfkjmchccjblkd/imgs/map/tip-top.png) repeat-x;"></div>
        <div id="tip-right-top"
             style="background: url(chrome-extension://ikkepelhgbcgmhhmcmpfkjmchccjblkd/imgs/map/tip-right-top.png);"></div>
        <div id="tip-right"
             style="background: url(chrome-extension://ikkepelhgbcgmhhmcmpfkjmchccjblkd/imgs/map/tip-right.png) repeat-y;"></div>
        <div id="tip-right-bottom"
             style="background: url(chrome-extension://ikkepelhgbcgmhhmcmpfkjmchccjblkd/imgs/map/tip-right-bottom.png);"></div>
        <div id="tip-bottom"
             style="background: url(chrome-extension://ikkepelhgbcgmhhmcmpfkjmchccjblkd/imgs/map/tip-bottom.png) repeat-x;"></div>
        <div id="tip-left-bottom"
             style="background: url(chrome-extension://ikkepelhgbcgmhhmcmpfkjmchccjblkd/imgs/map/tip-left-bottom.png);"></div>
        <div id="tip-left"
             style="background: url(chrome-extension://ikkepelhgbcgmhhmcmpfkjmchccjblkd/imgs/map/tip-left.png);"></div>
        <div id="trans-content"></div>
    </div>
    <div id="tip-arrow-bottom"
         style="background: url(chrome-extension://ikkepelhgbcgmhhmcmpfkjmchccjblkd/imgs/map/tip-arrow-bottom.png);"></div>
    <div id="tip-arrow-top"
         style="background: url(chrome-extension://ikkepelhgbcgmhhmcmpfkjmchccjblkd/imgs/map/tip-arrow-top.png);"></div>
</div>
<div id="HUABAN_WIDGETS">
    <div class="HUABAN-f-button" style="display: none;">采集</div>
    <style>#HUABAN_WIDGETS {
            font-family: "helvetica neue", arial, sans-serif;
            color: #444;
            font-size: 14px;
        }

        #HUABAN_WIDGETS * {
            box-sizing: content-box;
        }

        #HUABAN_WIDGETS .HUABAN-main {
            position: fixed;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background: #e5e5e5;
            background: rgba(229, 229, 229, .95);
            max-height: 100%;
            overflow: hidden;
            z-index: 9999999999999;
        }

        #HUABAN_WIDGETS a img {
            border: 0;
        }

        #HUABAN_WIDGETS .HUABAN-header {
            height: 50px;
            background: white;
            box-shadow: 0 0 4px rgba(0, 0, 0, .2);
            width: 100%;
            left: 0;
            top: 0;
            position: absolute;
        }

        #HUABAN_WIDGETS .HUABAN-header .HUABAN-inner {
            margin: 0 auto;
            position: relative;
        }

        #HUABAN_WIDGETS .HUABAN-header .HUABAN-close {
            width: 60px;
            height: 50px;
            border-left: 1px solid #ddd;
            position: absolute;
            right: 0;
            top: 0;
            background: url(//huaban.com/img/widgets/btn_close.png) 20px 14px no-repeat;
            cursor: pointer;
        }

        #HUABAN_WIDGETS .HUABAN-header .HUABAN-close:hover {
            background-position: 20px -26px;
        }

        #HUABAN_WIDGETS .HUABAN-header .HUABAN-close:active {
            background-position: 20px -66px;
        }

        #HUABAN_WIDGETS .HUABAN-header .HUABAN-logo {
            display: block;
            position: absolute;
            top: 12px;
        }

        #HUABAN_WIDGETS .HUABAN-waterfall-holder {
            position: relative;
            overflow-y: auto;
            height: 100%;
        }

        #HUABAN_WIDGETS .HUABAN-waterfall {
            position: relative;
            margin-top: 50px;
        }

        #HUABAN_WIDGETS .HUABAN-waterfall .HUABAN-empty {
            position: absolute;
            left: 50%;
            top: 30px;
            height: 36px;
            line-height: 36px;
            width: 216px;
            text-align: left;
            margin-left: -128px;
            color: #777;
            background: url(//huaban.com/img/widgets/icon_notice.png) 12px 8px no-repeat white;
            padding-left: 40px;
            font-size: 15px;
        }

        #HUABAN_WIDGETS .HUABAN-btn {
            display: inline-block;
            border-radius: 2px;
            font-size: 14px;
            padding: 0 12px;
            height: 30px;
            line-height: 30px;
            cursor: pointer;
            text-decoration: none;
            white-space: nowrap;
            -moz-user-select: none;
            -webkit-user-select: none;
            user-select: none;
            text-align: center;
            background: #D53939;
            color: white;
        }

        #HUABAN_WIDGETS .HUABAN-btn:hover {
            background: #E54646;
        }

        #HUABAN_WIDGETS .HUABAN-btn:active {
            background: #C52424;
        }

        #HUABAN_WIDGETS .HUABAN-wbtn {
            background: #EDEDED;
            color: #444;
        }

        #HUABAN_WIDGETS .HUABAN-wbtn:hover {
            background: #F2F2F2;
        }

        #HUABAN_WIDGETS .HUABAN-wbtn:active {
            background: #DDD;
        }

        #HUABAN_WIDGETS .HUABAN-f-button {
            position: absolute;
            display: none;
            z-index: 9999999999998;
            box-shadow: 0 0 0 2px rgba(255, 255, 255, .2);
            background: #aaa;
            background: rgba(0, 0, 0, .3);
            color: white;
            cursor: pointer;
            padding: 0 12px;
            height: 30px;
            line-height: 30px;
            border-radius: 2px;
            font-size: 14px
        }

        #HUABAN_WIDGETS .HUABAN-f-button:hover {
            background-color: #999;
            background-color: rgba(0, 0, 0, .5);
        }

        #HUABAN_WIDGETS .HUABAN-f-button:active {
            background-color: rgba(0, 0, 0, .6);
        }

        #HUABAN_WIDGETS .HUABAN-red-normal-icon-button {
            width: 36px;
            height: 24px;
            border: 0px;
            line-height: 24px;
            padding-left: 24px;
            padding-right: 0px;
            text-align: left;
            background: url(//huaban.com/img/widgets/widget_icons.png) 0 -200px no-repeat;
            box-shadow: none !important;
            font-size: 14px;
            background-color: transparent !important;
        }

        #HUABAN_WIDGETS .HUABAN-red-normal-icon-button:hover {
            background-position: -130px -200px;
        }

        #HUABAN_WIDGETS .HUABAN-red-normal-icon-button:active {
            background-position: -260px -200px;
        }

        #HUABAN_WIDGETS .HUABAN-red-large-icon-button {
            width: 80px;
            height: 24px;
            border: 0px;
            line-height: 24px;
            padding-left: 24px;
            padding-right: 0px;
            text-align: left;
            background: url(//huaban.com/img/widgets/widget_icons.png) 0 -150px no-repeat;
            box-shadow: none !important;
            font-size: 14px;
            background-color: transparent !important;
        }

        #HUABAN_WIDGETS .HUABAN-red-large-icon-button:hover {
            background-position: -130px -150px;
        }

        #HUABAN_WIDGETS .HUABAN-red-large-icon-button:active {
            background-position: -260px -150px;
        }

        #HUABAN_WIDGETS .HUABAN-red-small-icon-button {
            width: 30px;
            height: 21px;
            border: 0px;
            line-height: 21px;
            padding-left: 20px;
            padding-right: 0px;
            text-align: left;
            background: url(//huaban.com/img/widgets/widget_icons.png) 0 -250px no-repeat;
            box-shadow: none !important;
            font-size: 12px;
            background-color: transparent !important;
        }

        #HUABAN_WIDGETS .HUABAN-red-small-icon-button:hover {
            background-position: -130px -250px;
        }

        #HUABAN_WIDGETS .HUABAN-red-small-icon-button:active {
            background-position: -260px -250px;
        }

        #HUABAN_WIDGETS .HUABAN-white-normal-icon-button {
            width: 36px;
            height: 24px;
            border: 0px;
            line-height: 24px;
            padding-left: 24px;
            padding-right: 0px;
            text-align: left;
            background: url(//huaban.com/img/widgets/widget_icons.png) 0 -500px no-repeat;
            box-shadow: none !important;
            color: #444;
            font-size: 14px;
            background-color: transparent !important;
        }

        #HUABAN_WIDGETS .HUABAN-white-normal-icon-button:hover {
            background-position: -130px -500px;
        }

        #HUABAN_WIDGETS .HUABAN-white-normal-icon-button:active {
            background-position: -260px -500px;
        }

        #HUABAN_WIDGETS .HUABAN-white-large-icon-button {
            width: 80px;
            height: 24px;
            border: 0px;
            line-height: 24px;
            padding-left: 24px;
            padding-right: 0px;
            text-align: left;
            background: url(//huaban.com/img/widgets/widget_icons.png) 0 -450px no-repeat;
            box-shadow: none !important;
            color: #444;
            font-size: 14px;
            background-color: transparent !important;
        }

        #HUABAN_WIDGETS .HUABAN-white-large-icon-button:hover {
            background-position: -130px -450px;
        }

        #HUABAN_WIDGETS .HUABAN-white-large-icon-button:active {
            background-position: -260px -450px;
        }

        #HUABAN_WIDGETS .HUABAN-white-small-icon-button {
            width: 30px;
            height: 21px;
            border: 0px;
            line-height: 21px;
            padding-left: 20px;
            padding-right: 0px;
            text-align: left;
            background: url(//huaban.com/img/widgets/widget_icons.png) 0 -550px no-repeat;
            box-shadow: none !important;
            color: #444;
            font-size: 12px;
            background-color: transparent !important;
        }

        #HUABAN_WIDGETS .HUABAN-white-small-icon-button:hover {
            background-position: -130px -550px;
        }

        #HUABAN_WIDGETS .HUABAN-white-small-icon-button:active {
            background-position: -260px -550px;
        }

        #HUABAN_WIDGETS .HUABAN-cell {
            width: 236px;
            position: absolute;
            background: white;
            box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
            transition: left .3s ease-in-out, top .3s linear;
        }

        #HUABAN_WIDGETS .HUABAN-cell .HUABAN-img-holder {
            overflow: hidden;
            position: relative;
        }

        #HUABAN_WIDGETS .HUABAN-cell .HUABAN-img-holder:hover img.HUABAN-cell-img {
            opacity: .8
        }

        #HUABAN_WIDGETS .HUABAN-cell .HUABAN-video-icon {
            width: 72px;
            height: 62px;
            position: absolute;
            left: 50%;
            top: 50%;
            margin: -31px auto auto -36px;
            background: url(//huaban.com/img/widgets/media_video.png) 0 0 no-repeat;
            display: none;
        }

        #HUABAN_WIDGETS .HUABAN-cell.HUABAN-video .HUABAN-video-icon {
            display: block;
        }

        #HUABAN_WIDGETS .HUABAN-cell .HUABAN-over {
            display: none;
        }

        #HUABAN_WIDGETS .HUABAN-cell:hover .HUABAN-over {
            display: block;
        }

        #HUABAN_WIDGETS .HUABAN-cell .HUABAN-over .HUABAN-btn {
            width: 60px;
            height: 34px;
            padding: 0;
            position: absolute;
            left: 50%;
            top: 50%;
            margin: -18px 0 0 -31px;
            line-height: 34px;
            box-shadow: 0 0 0 2px rgba(255, 255, 255, .2);
            font-size: 16px;
        }

        #HUABAN_WIDGETS .HUABAN-cell.HUABAN-long .HUABAN-img-holder {
            height: 600px;
        }

        #HUABAN_WIDGETS .HUABAN-cell.HUABAN-long .HUABAN-img-holder:after {
            content: "";
            display: block;
            position: absolute;
            width: 236px;
            height: 12px;
            left: 0;
            bottom: 0;
            background: url(//huaban.com/img/widgets/long_image_shadow_2.png) repeat-x 4px top;
        }

        #HUABAN_WIDGETS .HUABAN-cell img {
            width: 236px;
            display: block;
        }

        #HUABAN_WIDGETS .HUABAN-cell .HUABAN-size {
            margin: 8px 16px;
            font-size: 12px;
            color: #999
        }

        #HUABAN_WIDGETS .HUABAN-cell .HUABAN-description {
            display: block;
            width: 202px;
            margin: 0 6px 6px;
            padding: 6px 10px;
            border: 0;
            resize: none;
            outline: 0;
            border: 1px solid transparent;
            line-height: 18px;
            font-size: 13px;
            overflow: hidden;
            word-wrap: break-word;
            background: url(//huaban.com/img/widgets/icon_edit.png) 500px center no-repeat;
        }

        #HUABAN_WIDGETS .HUABAN-cell:hover .HUABAN-description {
            background-color: #fff9e0;
            background-position: right top;
        }

        #HUABAN_WIDGETS .HUABAN-cell .HUABAN-description:focus {
            background-color: #F9F9F9;
            background-position: 500px center;
        }

        #HUABAN_WIDGETS .HUABAN-cell .HUABAN-select-btn {
            width: 34px;
            height: 34px;
            background: url(//huaban.com/img/widgets/checkbox.png) 0 0 no-repeat;
            position: absolute;
            right: 5px;
            top: 5px;
            cursor: pointer;
        }

        #HUABAN_WIDGETS .HUABAN-cell .HUABAN-pinned-label {
            position: absolute;
            left: 0;
            top: 10px;
            height: 24px;
            line-height: 24px;
            padding: 0 10px;
            background: #CE0000;
            background: rgba(200, 0, 0, 0.9);
            color: white;
            font-size: 12px;
            display: none;
        }

        #HUABAN_WIDGETS .HUABAN-cell.HUABAN-pinned .HUABAN-pinned-label {
            display: block;
        }

        #HUABAN_WIDGETS .HUABAN-selected .HUABAN-select-btn {
            background-position: 0 -40px;
        }

        #HUABAN_WIDGETS .HUABAN-multi .HUABAN-cell .HUABAN-img-holder {
            cursor: pointer;
        }

        #HUABAN_WIDGETS .HUABAN-multi .HUABAN-cell .HUABAN-cell-pin-btn {
            display: none;
        }

        #HUABAN_WIDGETS .HUABAN-multi .HUABAN-cell .HUABAN-over {
            display: block;
        }

        #HUABAN_WIDGETS .HUABAN-header .HUABAN-multi-buttons {
            position: absolute;
            top: 10px;
            left: 0;
            display: none;
        }

        #HUABAN_WIDGETS .HUABAN-header .HUABAN-multi-buttons .HUABAN-btn {
            margin-right: 10px;
        }

        #HUABAN_WIDGETS .HUABAN-header .HUABAN-multi-noti {
            display: none;
            height: 50px;
            line-height: 50px;
            text-align: center;
            font-size: 16px;
            color: #999;
            font-weight: bold;
        }

        #HUABAN_WIDGETS .HUABAN-header .HUABAN-multi-noti span {
            font-weight: normal;
        }

        #HUABAN_WIDGETS .HUABAN-header .HUABAN-multi-noti i {
            font-style: normal;
        }

        #HUABAN_WIDGETS .HUABAN-header .HUABAN-notice {
            padding: 0 10px;
            height: 30px;
            line-height: 30px;
            position: absolute;
            left: 50%;
            top: 10px;
            margin-left: -83px;
            background: #fff9e2;
            text-align: center;
        }

        #HUABAN_WIDGETS .HUABAN-header .HUABAN-notice i {
            display: inline-block;
            width: 18px;
            height: 18px;
            background: url(//huaban.com/img/widgets/icon_notice.png) 0 0 no-repeat;
            vertical-align: top;
            margin: 6px 6px 0 0;
        }

        #HUABAN_WIDGETS .HUABAN-switcher {
            height: 50px;
            width: 100px;
            position: relative;
        }

        #HUABAN_WIDGETS .HUABAN-switcher .HUABAN-title {
            position: absolute;
            right: 75px;
            top: 13px;
            color: #999;
            white-space: nowrap;
            line-height: 24px;
            opacity: 0;
            visibility: hidden;
        }

        #HUABAN_WIDGETS .HUABAN-switcher:hover .HUABAN-title {
            visibility: visible;
            opacity: 1;
            -webkit-transition: opacity .2s linear;
            -webkit-transition-delay: .2s;
            transition: opacity .2s linear;
            transition-delay: .2s;
        }

        #HUABAN_WIDGETS .HUABAN-switcher .HUABAN-bar {
            width: 40px;
            height: 24px;
            background: #EB595F;
            border-radius: 12px;
            color: white;
            position: absolute;
            right: 0;
            top: 13px;
            cursor: pointer;
            font-size: 14px;
            -webkit-transition: all .2s linear;
            transition: all .2s linear;
        }

        #HUABAN_WIDGETS .HUABAN-switcher:hover .HUABAN-bar {
            width: 64px;
        }

        #HUABAN_WIDGETS .HUABAN-switcher.HUABAN-on .HUABAN-bar {
            background: #7DD100;
        }

        #HUABAN_WIDGETS .HUABAN-switcher .HUABAN-bar .HUABAN-round {
            width: 20px;
            height: 20px;
            background: white;
            border-radius: 50%;
            position: absolute;
            left: 2px;
            top: 2px;
            -webkit-transition: left .2s linear;
            box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.15);
            transition: left .2s linear;
            box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.15);
        }

        #HUABAN_WIDGETS .HUABAN-switcher.HUABAN-on .HUABAN-bar .HUABAN-round {
            left: 17px;
        }

        #HUABAN_WIDGETS .HUABAN-switcher.HUABAN-on:hover .HUABAN-bar .HUABAN-round {
            left: 41px;
        }

        #HUABAN_WIDGETS .HUABAN-switcher .HUABAN-bar .HUABAN-text-1 {
            height: 24px;
            line-height: 24px;
            position: absolute;
            right: 17px;
            top: 0;
            opacity: 0;
            visibility: hidden;
            -webkit-transition: all .2s linear;
            transition: all .2s linear;
        }

        #HUABAN_WIDGETS .HUABAN-switcher:hover .HUABAN-bar .HUABAN-text-1 {
            right: 9px;
            opacity: 1;
            visibility: visible;
        }

        #HUABAN_WIDGETS .HUABAN-switcher.HUABAN-on:hover .HUABAN-bar .HUABAN-text-1 {
            right: 17px;
            opacity: 0;
            visibility: hidden;
        }

        #HUABAN_WIDGETS .HUABAN-switcher .HUABAN-bar .HUABAN-text-2 {
            height: 24px;
            line-height: 24px;
            position: absolute;
            left: 17px;
            top: 0;
            opacity: 0;
            visibility: hidden;
            -webkit-transition: all .2s linear;
            transition: all .2s linear;
        }

        #HUABAN_WIDGETS .HUABAN-switcher:hover .HUABAN-bar .HUABAN-text-2 {
            left: 17px;
            opacity: 0;
            visibility: hidden;
        }

        #HUABAN_WIDGETS .HUABAN-switcher.HUABAN-on:hover .HUABAN-bar .HUABAN-text-2 {
            left: 9px;
            opacity: 1;
            visibility: visible;
        }

        #HUABAN_WIDGETS .HUABAN-header .HUABAN-switcher {
            position: absolute;
            right: 0;
            top: 0;
        }

        <!--
        [if IE

        6
        ]
        > #HUABAN_WIDGETS .HUABAN-red-normal-icon-button, .HUABAN-red-large-icon-button, .HUABAN-red-small-icon-button, .HUABAN-white-normal-icon-button, .HUABAN-white-large-icon-button, .HUABAN-white-small-icon-button {
            background-image: url({{imgBase}}/widget_icons_ie6.png) < ! [endif] --></style>
</div>
</body>
</html>